<%@ page import="serverDB.*" %>
<%@ page import="java.util.Set" %>
<%@ page import="java.util.List" %>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CleverDropBox</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/arial.js"></script>
<script type="text/javascript" src="js/cuf_run.js"></script>
<link rel="stylesheet" type="text/css" href="niftyCorners.css">
<link rel="stylesheet" type="text/css" href="niftyPrint.css" media="print">
<script type="text/javascript" src="niftycube.js"></script>
<!-- <script type="text/javascript">
window.onload=function(){
Nifty("div#box","transparent");
}
</script> -->
<meta content=IE=EmulateIE7 http-equiv=X-UA-Compatible />
</head>
<body>
<% if(session.getAttribute("logedIn")==null || !(Boolean)session.getAttribute("logedIn")) 
	response.sendRedirect("index.jsp");
%>
<div class="main2">
  <div class="header">
    <div class="header_resize">
      <div class="logo">
        <h1><a href="index.jsp">Clever<span>DropBox</span></a></h1>
      </div>
      <div class="menu_nav">
        <ul>
          <li><a href="index.jsp"><span>Home</span></a></li>
          <li class="active"><a href="users.jsp"><span>Users</span></a></li>
          <li><a href="support.html"><span>Support</span></a></li>
          <li><a href="aboutUs.jsp"><span>About Us</span></a></li>
          <li><a href="contactUs.jsp"><span>Contact Us</span></a></li>
        </ul>
        <div class="clr"></div>
      </div>
      <div class="clr"></div>
    </div>
  </div>
  <div class="clr"></div>
  <div class="content">
  <div class="infobar">
     <%= session.getAttribute("userName") %> &nbsp;&nbsp;&nbsp;&nbsp;
     <a href= "LogOutServlet">logout</a>
    </div>
    <div class="clr"></div>
    <div class="content_resize">
      <div class="mainbar">
        <div class="article">
			<br />
          <h2>Create New Box</h2> 
          <div class="clr"></div><div class="clr"></div><br />
          <form action="NewBoxServlet" method="post">
          <ol>
         	 <li>
                  <label for="boxName">Box Name:</label>
                  <input id="boxName" name="boxName" class="text" />
                  <div class="clr"></div>
              </li><br />
              
              <% if(session.getAttribute("error")!=null){%>
          	  <li class = "error">
            	  <% out.println(session.getAttribute("error"));
            	  	 session.removeAttribute("error");
            	  %>
              </li>
            	  <%} %>
              <li>
                  <input type="image" name="imageField" id="imageField" src="images/create.png" class="send" />
                  <div class="clr"></div>
                  
              </li><br /><br /><br /><br />
              
          </ol>
      </form>
        </div>
      </div>
      <div class="sidebar">
        <div class="search">
          <form id="form" name="form" method="post" action="SearchServlet">
            <span>
            <input name="search0" type="text" class="keywords" id="search" maxlength="50" value="Search..." />
            <input name="b" type="image" src="images/search.gif" class="button" />
            </span>
          </form>
        </div>
        <div class="gadget">
          <h2>Menu</h2>
          <div class="clr"></div>
          <ul class="sb_menu">
          	<li><a href="logedIn2.jsp">My Boxes</a></li>
            <li><a href="uploadFile.jsp">Upload File</a></li>
            <li><a href="advancedSearch.jsp">Advanced Search</a></li>
            <li><a href="newBox.jsp">Create New Box</a></li>
            <li><a href="shareBox.jsp">Share Box</a></li>
          </ul>
        </div>
        <div class="gadget">
          <h2>Wise Words</h2>
          <div class="clr"></div>
          <p> <img src="images/test_1.gif" alt="" width="19" height="20" /> <em>Let's face it, comedy's a dead art form. Tragedy, now that's funny. </em>.<img src="images/test_2.gif" alt="" width="19" height="20" /></p>
          <p style="float:right;"><strong>Bender</strong></p>
        </div>
      </div>
      <div class="clr"></div>
    </div>
  </div>
  <div class="fbg">
    <div class="fbg_resize">
      
      <div class="clr"></div>
    </div>
    <div class="footer">
      <p class="lf">&copy; Copyright <a href="#">MyWebSite</a>.</p>
      <p class="rf">Layout by Cool <a href="http://www.coolwebtemplates.net/">Website Templates</a></p>
      <div class="clr"></div>
    </div>
  </div>
</div>
</body>
</html>
